<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<#include "../common/common.html">
<title>角色权限编辑</title>
</head>
<body>
<article class="page-container">
	<form action="" method="post" class="form form-horizontal" id="form-admin-role-add">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">权限模块：</label>
			<div class="formControls col-xs-8 col-sm-8">
			<#list permissionList as permission>
				<dl class="permission-list">
					<dt>
						<label>${permission.permission_name!}</label>
					</dt>
				    <dd>
						<dl class="cl permission-list2">
						<#list permission.childList as childre >
							<dt>
								<label class="">
									<input type="checkbox"  ${childre.selected} value="${childre.id!}" >
									${childre.permission_name!}</label>
							</dt>	
				       </#list>
						</dl>
					</dd>
				</dl>
				</#list>
			</div>
		</div>
		<input type="hidden" value="${roleId!}" id="roleId">
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="button"  id="subBtn"value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
				<button onClick="removeWindow();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</article>
</body>
<#include "../common/edit.html">
 <script type="text/javascript" src="${ctx}/static/js/role/role-per-edit.js"></script>
</html>
